\documentclass{ctexart}
\usepackage{avanti}
\everymath{\color{Solarized-magenta}}
\pagestyle{empty} % 没有页眉和页脚

 % define the plot style and the axis style
 \tikzset{base/.style={smooth,thick,Solarized-base01}}
 \tikzset{arrow/.style={->,>=stealth,base}}

\begin{document}

\begin{figure}[ht]
    \centering
    \begin{tikzpicture}[thick,scale=1.0]

        \path (-1.3,2.8) node () {$\bm{w}^\top \bm{x} = 0$};

        \draw [base] (-3.5,0) circle (0.1);
        \draw [base] (-2.35,2) circle (0.1);
        \draw [base] (-2.3,-0.3) circle (0.1);
        \draw [base] (-2.5,-2) circle (0.1);
        \draw [base] (-2,-1) circle (0.1);
        \draw [base] (-2,0.5) circle (0.1);
        \draw [base] (-1.05,-0.5) circle (0.1);
        \draw [base] (1.1,0.55) rectangle ++(0.18,0.18);
        \draw [base] (2.6,1.5) rectangle ++(0.18,0.18);
        \draw [base] (2.4,-2) rectangle ++(0.18,0.18);
        \draw [base] (2,0) rectangle ++(0.18,0.18);
        \draw [base] (2.5,-0.2) rectangle ++(0.18,0.18);
        \draw [base] (2.9,-1.5) rectangle ++(0.18,0.18);
        \draw [base] (3.2,0.8) rectangle ++(0.18,0.18);

        \draw [arrow,<->] (-1,-0.5) -- (0.07, 0.07);
        \draw [arrow,<->] (1.14, 0.64) -- (0.07, 0.07);

        \path (-0.6,0) node () {$\gamma$};
        \path (0.5,0.55) node () {$\gamma$};

        \draw [base] (-1.2,2.454) -- (1.35, -2.3328);
        \draw [base,dashed] (0.2,2.454) -- (2.75, -2.3328);
        \draw [base,dashed] (-2.6,2.454) -- (-0.05, -2.3328);
        
    \end{tikzpicture}
\end{figure}


\end{document}